import React, {FC, useContext} from 'react';
import "./index.less";
import {correspVal} from "@/utils/biz";
import {HxConfigContext} from "@/layouts/HxConfigContext";

interface LegalAgreementProps {
}

const LegalAgreement: FC<LegalAgreementProps> = (props) => {
  const {siteInfo, isZhCN} = useContext(HxConfigContext)
  return (
    <div className={"legal-agreement-container"}  dangerouslySetInnerHTML={{__html: correspVal(isZhCN, siteInfo?.legalLiability.textCn, siteInfo?.legalLiability.textEn) || ""}}/>

  );
};

export default LegalAgreement;
